const express = require('express');
const router = express.Router();
const checkinController = require('../controllers/checkinController');
const userController = require('../controllers/userController');

// 校验
router.use(userController.verifyToken);

// 用户签到
router.post('/checkin', checkinController.userCheckin);

// 判断用户今天是否签到
router.get('/isCheckin', checkinController.isCheckin);

// 获取用户签到历史
router.get('/checkinHistory', checkinController.getCheckinHistory);

module.exports = router; 